home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / General Tools / Headers / XStrList.h < prev   
MacBinary  |  1999-07-13  |  2.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 13 21:53:56 1999, modified Tue Jul 13 21:53:56 1999, creator 'CWIE', type ASCII, 1418 bytes "XStrList.h" , at 0x60a 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 58 53 74 72 4c 69 | 73 74 2e 68 00 00 00 00 |..XStrLi|st.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 05 8a 00 | 00 01 9a b3 b1 9e 34 b3 |........|......4.|
|00000060| b1 9e 34 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..4.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bc 90 00 00 |........|........|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 58 53 54 52 4c 49 53 |#ifndef |_XSTRLIS|
|00000090| 54 5f 0d 23 64 65 66 69 | 6e 65 20 5f 58 53 54 52 |T_.#defi|ne _XSTR|
|000000a0| 4c 49 53 54 5f 0d 0d 23 | 69 6e 63 6c 75 64 65 20 |LIST_..#|include |
|000000b0| 22 58 50 74 72 4c 69 73 | 74 2e 68 22 0d 0d 0d 65 |"XPtrLis|t.h"...e|
|000000c0| 6e 75 6d 20 58 53 74 72 | 4c 69 73 74 4f 70 74 73 |num XStr|ListOpts|
|000000d0| 54 20 7b 0d 09 63 44 75 | 70 6c 69 63 61 74 65 73 |T {..cDu|plicates|
|000000e0| 41 6c 6c 6f 77 65 64 2c | 0d 09 63 4e 6f 44 75 70 |Allowed,|..cNoDup|
|000000f0| 6c 69 63 61 74 65 73 5f | 43 61 73 65 53 65 6e 73 |licates_|CaseSens|
|00000100| 69 74 69 76 65 2c 0d 09 | 63 4e 6f 44 75 70 6c 69 |itive,..|cNoDupli|
|00000110| 63 61 74 65 73 5f 43 61 | 73 65 49 6e 73 65 6e 73 |cates_Ca|seInsens|
|00000120| 69 74 69 76 65 0d 7d 3b | 0d 0d 0d 0d 63 6c 61 73 |itive.};|....clas|
|00000130| 73 20 58 53 74 72 4c 69 | 73 74 20 7b 0d 0d 09 70 |s XStrLi|st {...p|
|00000140| 75 62 6c 69 63 3a 0d 09 | 09 09 09 09 09 09 09 58 |ublic:..|.......X|
|00000150| 53 74 72 4c 69 73 74 28 | 20 58 53 74 72 4c 69 73 |StrList(| XStrLis|
|00000160| 74 4f 70 74 73 54 20 69 | 6e 4f 70 74 69 6f 6e 2c |tOptsT i|nOption,|
|00000170| 20 4c 69 73 74 4f 72 64 | 65 72 69 6e 67 54 20 69 | ListOrd|eringT i|
|00000180| 6e 4f 72 64 65 72 69 6e | 67 20 3d 20 63 4f 72 64 |nOrderin|g = cOrd|
|00000190| 65 72 4e 6f 74 49 6d 70 | 6f 72 74 61 6e 74 20 29 |erNotImp|ortant )|
|000001a0| 3b 0d 09 09 76 69 72 74 | 75 61 6c 09 09 09 09 09 |;...virt|ual.....|
|000001b0| 7e 58 53 74 72 4c 69 73 | 74 28 29 3b 0d 09 09 09 |~XStrLis|t();....|
|000001c0| 0d 09 09 2f 2f 20 52 65 | 74 75 72 6e 73 20 77 68 |...// Re|turns wh|
|000001d0| 61 74 20 69 6e 64 65 78 | 20 74 68 65 20 63 6f 70 |at index| the cop|
|000001e0| 79 20 6f 66 20 74 68 65 | 20 67 69 76 65 6e 20 73 |y of the| given s|
|000001f0| 74 72 69 6e 67 20 6e 6f | 77 20 6f 63 63 75 70 69 |tring no|w occupi|
|00000200| 65 73 20 28 31 2d 62 61 | 73 65 64 20 69 6e 64 65 |es (1-ba|sed inde|
|00000210| 78 69 6e 67 29 2e 20 20 | 49 66 20 30 20 69 73 20 |xing). |If 0 is |
|00000220| 72 65 74 75 72 6e 65 64 | 2c 0d 09 09 2f 2f 20 61 |returned|,...// a|
|00000230| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 73 74 72 | copy of| the str|
|00000240| 69 6e 67 20 77 61 73 20 | 6e 6f 74 20 61 64 64 65 |ing was |not adde|
|00000250| 64 20 62 65 63 61 75 73 | 65 20 69 74 20 77 61 73 |d becaus|e it was|
|00000260| 20 61 20 64 75 70 6c 69 | 63 61 74 65 20 28 69 66 | a dupli|cate (if|
|00000270| 20 74 68 61 74 20 66 6c | 61 67 20 69 73 20 6f 6e | that fl|ag is on|
|00000280| 29 0d 09 09 6c 6f 6e 67 | 09 09 09 09 09 41 64 64 |)...long|.....Add|
|00000290| 28 20 63 6f 6e 73 74 20 | 76 6f 69 64 2a 20 69 6e |( const |void* in|
|000002a0| 44 61 74 61 2c 20 6c 6f | 6e 67 20 69 6e 4c 65 6e |Data, lo|ng inLen|
|000002b0| 20 29 3b 0d 09 09 6c 6f | 6e 67 09 09 09 09 09 41 | );...lo|ng.....A|
|000002c0| 64 64 28 20 63 6f 6e 73 | 74 20 63 68 61 72 2a 20 |dd( cons|t char* |
|000002d0| 69 6e 53 74 72 20 29 3b | 09 09 09 09 09 0d 09 09 |inStr );|........|
|000002e0| 6c 6f 6e 67 09 09 09 09 | 09 41 64 64 28 20 63 6f |long....|.Add( co|
|000002f0| 6e 73 74 20 55 74 69 6c | 53 74 72 26 20 69 6e 53 |nst Util|Str& inS|
|00000300| 74 72 20 29 3b 0d 09 09 | 0d 09 09 76 6f 69 64 09 |tr );...|...void.|
|00000310| 09 09 09 09 52 65 6d 6f | 76 65 41 6c 6c 28 29 3b |....Remo|veAll();|
|00000320| 0d 09 09 76 6f 69 64 09 | 09 09 09 09 52 65 6d 6f |...void.|....Remo|
|00000330| 76 65 28 20 6c 6f 6e 67 | 20 69 6e 49 6e 64 65 78 |ve( long| inIndex|
|00000340| 20 29 3b 20 0d 09 09 0d | 09 09 2f 2f 20 4c 6f 6f | ); ....|..// Loo|
|00000350| 6b 20 66 6f 72 20 61 6e | 20 69 74 65 6d 20 77 69 |k for an| item wi|
|00000360| 74 68 20 61 20 6d 61 74 | 63 68 69 6e 67 20 6e 61 |th a mat|ching na|
|00000370| 6d 65 2e 20 20 49 66 20 | 30 20 69 73 20 72 65 74 |me. If |0 is ret|
|00000380| 75 72 6e 65 64 2c 20 6e | 6f 20 69 74 65 6d 20 77 |urned, n|o item w|
|00000390| 61 73 20 66 6f 75 6e 64 | 2e 0d 09 09 76 69 72 74 |as found|....virt|
|000003a0| 75 61 6c 20 6c 6f 6e 67 | 09 09 09 46 69 6e 64 49 |ual long|...FindI|
|000003b0| 6e 64 65 78 4f 66 28 20 | 63 6f 6e 73 74 20 63 68 |ndexOf( |const ch|
|000003c0| 61 72 2a 20 69 6e 53 74 | 72 20 29 20 63 6f 6e 73 |ar* inSt|r ) cons|
|000003d0| 74 3b 0d 09 09 6c 6f 6e | 67 09 09 09 09 09 46 69 |t;...lon|g.....Fi|
|000003e0| 6e 64 49 6e 64 65 78 4f | 66 28 20 63 6f 6e 73 74 |ndIndexO|f( const|
|000003f0| 20 55 74 69 6c 53 74 72 | 26 20 69 6e 53 74 72 20 | UtilStr|& inStr |
|00000400| 29 20 63 6f 6e 73 74 3b | 0d 09 09 0d 09 09 2f 2f |) const;|......//|
|00000410| 20 52 65 74 75 72 6e 73 | 20 61 20 63 6f 70 79 20 | Returns| a copy |
|00000420| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 27 73 20 |of the s|tring's |
|00000430| 63 6f 6e 74 65 6e 74 73 | 0d 09 09 62 6f 6f 6c 09 |contents|...bool.|
|00000440| 09 09 09 09 46 65 74 63 | 68 28 20 6c 6f 6e 67 20 |....Fetc|h( long |
|00000450| 69 6e 49 6e 64 65 78 2c | 20 55 74 69 6c 53 74 72 |inIndex,| UtilStr|
|00000460| 26 20 6f 75 74 53 74 72 | 20 29 20 63 6f 6e 73 74 |& outStr| ) const|
|00000470| 3b 09 0d 09 09 0d 09 09 | 2f 2f 20 52 65 74 75 72 |;.......|// Retur|
|00000480| 6e 73 20 64 69 72 65 63 | 74 20 61 63 63 65 73 73 |ns direc|t access|
|00000490| 20 74 6f 20 74 68 65 20 | 73 74 72 69 6e 67 20 28 | to the |string (|
|000004a0| 69 74 20 63 61 6e 6e 6f | 74 20 62 65 20 63 68 61 |it canno|t be cha|
|000004b0| 6e 67 65 64 29 0d 09 09 | 63 6f 6e 73 74 20 55 74 |nged)...|const Ut|
|000004c0| 69 6c 53 74 72 2a 09 09 | 09 46 65 74 63 68 28 20 |ilStr*..|.Fetch( |
|000004d0| 6c 6f 6e 67 20 69 6e 49 | 6e 64 65 78 20 29 20 63 |long inI|ndex ) c|
|000004e0| 6f 6e 73 74 3b 0d 0d 09 | 09 69 6e 6c 69 6e 65 20 |onst;...|.inline |
|000004f0| 6c 6f 6e 67 09 09 09 09 | 43 6f 75 6e 74 28 29 09 |long....|Count().|
|00000500| 63 6f 6e 73 74 09 09 09 | 09 09 09 09 09 09 7b 20 |const...|......{ |
|00000510| 72 65 74 75 72 6e 20 6d | 53 74 72 69 6e 67 73 2e |return m|Strings.|
|00000520| 43 6f 75 6e 74 28 29 3b | 09 7d 0d 0d 09 70 72 6f |Count();|.}...pro|
|00000530| 74 65 63 74 65 64 3a 0d | 09 09 73 74 61 74 69 63 |tected:.|..static|
|00000540| 20 69 6e 74 09 09 09 09 | 73 53 74 72 43 6f 6d 70 | int....|sStrComp|
|00000550| 61 72 69 74 6f 72 28 20 | 63 6f 6e 73 74 20 76 6f |aritor( |const vo|
|00000560| 69 64 2a 20 69 6e 41 2c | 20 63 6f 6e 73 74 20 76 |id* inA,| const v|
|00000570| 6f 69 64 2a 20 69 6e 42 | 20 29 3b 0d 09 09 73 74 |oid* inB| );...st|
|00000580| 61 74 69 63 20 69 6e 74 | 09 09 09 09 73 53 74 72 |atic int|....sStr|
|00000590| 43 6f 6d 70 61 72 69 74 | 6f 72 43 49 28 20 63 6f |Comparit|orCI( co|
|000005a0| 6e 73 74 20 76 6f 69 64 | 2a 20 69 6e 41 2c 20 63 |nst void|* inA, c|
|000005b0| 6f 6e 73 74 20 76 6f 69 | 64 2a 20 69 6e 42 20 29 |onst voi|d* inB )|
|000005c0| 3b 0d 09 09 58 53 74 72 | 4c 69 73 74 4f 70 74 73 |;...XStr|ListOpts|
|000005d0| 54 09 09 09 6d 53 74 72 | 4c 69 73 74 4f 70 74 69 |T...mStr|ListOpti|
|000005e0| 6f 6e 3b 0d 09 09 58 50 | 74 72 4c 69 73 74 09 09 |on;...XP|trList..|
|000005f0| 09 09 6d 53 74 72 69 6e | 67 73 3b 0d 09 09 0d 7d |..mStrin|gs;....}|
|00000600| 3b 0d 0d 0d 23 65 6e 64 | 69 66 00 00 00 00 00 00 |;...#end|if......|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000690| 20 65 78 63 65 70 74 69 | 6f 6e 0d 0a 20 20 20 20 | excepti|on.. |
|000006a0| 29 3b 0d 0a 0d 0a 52 50 | 43 5f 53 54 41 54 55 53 |);....RP|C_STATUS|
|000006b0| 0a 58 53 74 72 4c 69 73 | 74 2e 68 33 20 44 65 76 |.XStrLis|t.h3 Dev|
|000006c0| 69 67 2e 6d 70 33 2e 6d | 70 33 77 6f 72 6c 64 2e |ig.mp3.m|p3world.|
|000006d0| 02 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 ae e5 97 6c 00 00 | 03 da 00 00 01 9a 20 20 |.....l..|...... |
|00000700| 20 20 49 4e 20 76 6f 69 | 64 20 2a 20 54 68 72 65 | IN voi|d * Thre|
|00000710| 61 64 0d 0a 20 20 20 20 | 29 3b 0d 0a 0d 0a 2f 2a |ad.. |);..../*|
|00000720| 20 63 6c 69 65 6e 74 2f | 73 65 72 76 65 72 20 2a | client/|server *|
|00000730| 2f 0d 0a 52 50 43 5f 53 | 54 41 54 55 53 20 52 50 |/..RPC_S|TATUS RP|
|00000740| 43 5f 45 4e 54 52 59 0d | 0a 55 75 69 64 43 72 65 |C_ENTRY.|.UuidCre|
|00000750| 61 74 65 20 28 0d 0a 20 | 20 20 20 4f 55 54 20 55 |ate (.. | OUT U|
|00000760| 55 49 44 20 5f 5f 52 50 | 43 5f 46 41 52 20 2a 20 |UID __RP|C_FAR * |
|00000770| 55 75 69 64 0d 0a 20 20 | 20 20 29 3b 0d 0a 0d 0a |Uuid.. | );....|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 03 | 00 04 00 4c 00 82 02 46 |........|...L...F|
|000007b0| 02 e2 00 4c 00 82 02 46 | 02 e2 b3 b1 57 e4 00 00 |...L...F|....W...|
|000007c0| 00 31 00 00 00 3b 00 00 | 00 3e 01 00 00 00 00 04 |.1...;..|.>......|
|000007d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000007e0| 00 00 00 46 04 f9 79 34 | 16 c6 00 00 00 1c 00 46 |...F..y4|.......F|
|000007f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000800| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000810| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+